validateAndSet

fun validateAndSet(identifier: Identifier): ValidatedIngredient

Updates this ValidatedIngredient with a new single-item Ingredient

Return

This validated ingredient after validating and updating with the new input

Author

fzzyhmstrs

Since

0.3.2

Parameters

identifier

Identifier - the id of the new single item to wrap in this ingredient


Updates this ValidatedIngredient with a new multi-item Ingredient

Return

This validated ingredient after validating and updating with the new input

Author

fzzyhmstrs

Since

0.3.3

Parameters

identifiers

List<Any> - List of tags and ids. Anything that isn't an Identifier or Tagkey will be ignored


fun validateAndSet(tag: TagKey<Item>): ValidatedIngredient

Updates this ValidatedIngredient with a new tag Ingredient

Return

This validated ingredient after validating and updating with the new input

Author

fzzyhmstrs

Since

0.3.2

Parameters

tag

TagKey - the tagkey of the new item tag to wrap in this ingredient